﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Media.Effects;
using System.Windows.Media;
using System.Windows.Shapes;

namespace RS.ZhaoXiWidgets.Controls
{
    public class ZXDataBtn : Button
    {
        static ZXDataBtn()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(ZXDataBtn), new FrameworkPropertyMetadata(typeof(ZXDataBtn)));
        }





        public string DataDes
        {
            get { return (string)GetValue(DataDesProperty); }
            set { SetValue(DataDesProperty, value); }
        }

        public static readonly DependencyProperty DataDesProperty =
            DependencyProperty.Register("DataDes", typeof(string), typeof(ZXDataBtn), new PropertyMetadata(null));



        public double? Data
        {
            get { return (double?)GetValue(DataProperty); }
            set { SetValue(DataProperty, value); }
        }

        public static readonly DependencyProperty DataProperty =
            DependencyProperty.Register("Data", typeof(double?), typeof(ZXDataBtn), new PropertyMetadata(0D));


        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();
        }
    }
}
